home *** CD-ROM | disk | FTP | other *** search
- ' Procedure Demonstration Menu Version 1.00
- ' SIMS (c) David Thomas Stewart 1984-1987
- ' Distributed by Synergy Development - THIS PROGRAM IS PUBLIC DOMAIN
-
- screen(n)
-
- normal
- foreground(white+)
- background(red)
- setdate
- settime
-
- date(2,9)
- time(65,9)
-
- normal
- foreground(green)
- setattr
-
- box(0,0)-(79,24),"║"
- fill(1,0),"═",78
- fill(1,24),"═",78
- fill(1,8),"─",78
- fill(1,10),"─",78
- .(0,0)"╔"
- .(0,24)"╚"
- .(79,0)"╗"
- .(79,24)"╝"
- .(0,8)"╟"
- .(79,8)"╢"
- .(0,10)"╟"
- .(79,10)"╢"
-
- foreground(white+)
- background(blue)
- setattr
- .(27,9)" Procedure Demo Version 1.00 "
-
- normal
- foreground(yellow)
- setattr
- .(5,2)"█████▒ █████▒ █████▒ ████▒ ███▒ ████▒ ███████▒ █████▒"
- .(5,3)"█▒ █▒ █▒ █▒ █▒ █▒ █▒ █▒ █▒ █▒ █▒ █▒ █▒ █▒ █▒"
- .(5,4)"█████▒ █████▒ █▒ █▒ █▒ █▒ █▒ ████▒ █▒ █▒ █▒ █▒ █▒"
- .(5,5)"█▒ █▒ ██▒ █▒ █▒ █▒ █▒ █▒ █▒ █▒ █▒ █▒ █▒ █▒"
- .(5,6)"█▒ █▒ █▒ █████▒ ████▒ ██████▒ ████▒ █▒ █▒ █▒ █████▒"
-
- option start
- option(F1,11,13)" F1 - EXEC Procedure ","\COMMAND.COM/C DIR/P",wait
- option(F3,11,14)" F3 - EXEC and DONE Procedures ","\COMMAND.COM/C DIR/P",wait
- option(F2,44,13)" F2 - DONE Procedure ","\COMMAND.COM/C DIR/P",clear,noclock,wait
- option(F4,44,14)" F4 - Return to DEMO Menu ","MENU DEMO"
- option end
-
- border(grey)
-
- normal
- foreground(cyan)
- setattr
-
- proc(F1,select)
- fill(1,17)," ",78
- .(18,17)"This is option F1 - EXEC Procedure"
- proc end
-
- proc(F2,select)
- fill(1,17)," ",78
- .(18,17)"This is option F2 - DONE Procedure"
- proc end
-
- proc(F3,select)
- fill(1,17)," ",78
- .(18,17)"This is option F3 - EXEC and DONE Procedures"
- proc end
-
- proc(F4,select)
- fill(1,17)," ",78
- .(18,17)"This is option F4 - Return to DEMO Menu"
- proc end
-
- proc(F1,exec)
- invisible
- settime
- setdate
- setstat
- normal
- foreground(red+)
- setattr
- field(0,0)-(79,24)
- .(20,0)"*** This is an EXEC procedure ***"
- .(10,3)"It can be used to give instructions prior to the execution"
- .(10,4)"of an OPTION. The following example illustrates this:"
- foreground(green+)
- setattr
- .(20,8)"DIRECTORY OF DISKETTE - Press ─┘ To Continue"
- foreground(red+)
- setattr
- .(10,11)"(Press Enter now...)"
- wait(ENTER)
- field(0,0)-(79,24)
- proc end
-
- proc(F2,done)
- time(65,0)
- normal
- foreground(red+)
- setattr
- field(0,0)-(79,24)
- .(20,0)"*** DIRECTORY COMPLETE ***"
- foreground(green+)
- setattr
- .(10,4)"Press ─┘ to continue"
- wait(ENTER)
- proc end
-
- proc(F3,exec)
- invisible
- settime
- setdate
- setstat
- normal
- foreground(red+)
- setattr
- field(0,0)-(79,24)
- .(20,0)"*** This is an EXEC procedure ***"
- .(10,3)"It can be used to give instructions prior to the execution"
- .(10,4)"of an OPTION. The following example illustrates this:"
- foreground(green+)
- setattr
- .(20,8)"DIRECTORY OF DISKETTE - Press ─┘ To Continue"
- foreground(red+)
- setattr
- .(10,11)"(Press Enter now...)"
- wait(ENTER)
- field(0,0)-(79,24)
- proc end
-
- proc(F3,done)
- invisible
- settime
- setdate
- setstat
- normal
- foreground(red+)
- setattr
- field(0,0)-(79,24)
- .(20,0)"*** DIRECTORY COMPLETE ***"
- foreground(green+)
- setattr
- .(10,4)"Press ─┘ to continue"
- wait(ENTER)
- proc end
-
- end